import request from '@/utils/request'

export function getCompanyList(pageNum,pageSize,companyName) {
  return request({
    url: `/company/getCompanyList?pageNum=${pageNum}&pageSize=${pageSize}&companyName=${companyName}`,
    method: 'get'
  })
}

export function getCompany(companyId) {
    return request({
      url: `/company/getCompany?companyId=${companyId}`,
      method: 'get'
    })
  }


  export function updateCompany(data) {
    return request({
      url: `/company/updateCompany`,
      method: 'put',
      data
    })
  }
  export function addCompany(data) {
    return request({
      url: `/company/addCompany`,
      method: 'POST',
      data
    })
  }
  export function deleteCompany(companyId) {
    return request({
      url: `/company/deleteCompany?companyId=${companyId}`,
      method: 'DETELE',
      
    })
  }
  